{extend name="../../admin/view/main"}

{block name="content"}
<div class="layui-tab layui-tab-card">

    <div class="layui-tab-content">
        {include file='user/distribution/index_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th>用户信息</th>
                <th>申请信息</th>
<!--                <th>佣金占比</th>-->
                <th class='nowrap'>操作</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
                </td>
                <td class="nowrap relative">
                    <div>
                        <div class="headimg" data-lazy-src="{$vo.user.headimg|default='__ROOT__/static/theme/img/headimg.png'}" data-tips-image></div>
                        <div class="inline-block sub-strong-red">
                            用户昵称：<span class="color-text">{$vo.user.nickname|default='--'}</span><span class="margin-left-5">[ <b>VIP{$vo.user.vip_code|default=''}</b> ] <b>{$vo.user.vip_name|default=''}</b></span><br>
                            用户手机：<span class="color-text">{$vo.user.phone|default='--'}</span><br>
                        </div>
                    </div>
                </td>
                <td class='nowrap'>
                    {eq name='vo.status' value='0'}<span class="layui-badge layui-badge-middle layui-bg-orange">审核中</span>{/eq}
                    {eq name='vo.status' value='1'}<span class="layui-badge layui-badge-middle layui-bg-green">已审核</span>{/eq}
                    {eq name='vo.status' value='2'}<span class="layui-badge layui-badge-middle layui-bg-red">已驳回</span>{/eq}
                    <div class="inline-block text-middle">
                        <div class="sub-strong-blue">
                            申请时间：<b>{$vo.apply_time|format_datetime}</b>
                        </div>
                        <div>审核时间：<span class="color-text">{$vo.audit_time|format_datetime|default='未审核'}</span></div>
                        <div>审核备注：<span class="color-text">{$vo.audit_remark|default='无'}</span></div>
                    </div>
                </td>
<!--                <td class='nowrap'>-->
<!--                    {eq name='vo.status' value='1'}-->
<!--                        <div class="inline-block text-middle">-->
<!--                            <div class="sub-strong-blue">-->
<!--                                一级分佣比例：<b>{$vo.first_rate|default='10'}%</b>-->
<!--                            </div>-->
<!--                            <div class="sub-strong-blue">-->
<!--                                二级分佣比例：<b>{$vo.second_rate|default='10'}%</b>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    {else/}-->
<!--                    无-->
<!--                    {/eq}-->
<!--                </td>-->

                <td class="nowrap">
                    <!--{if auth("audit") and $vo.status eq 0}-->
                    <a class="layui-btn layui-btn-xs layui-btn-normal" data-modal="{:url('audit')}?id={$vo.id}">审 核</a>
                    <!--{/if}-->
                    <!--{if auth("edit") and $vo.status eq 1}-->
<!--                    <a class="layui-btn layui-btn-sm layui-btn-normal" data-modal="{:url('edit')}?id={$vo.id}">编 辑</a>-->
                    <!--{/if}-->
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>

{/block}
